package ltg.ibutton.core.wrappers;

import java.util.ArrayList;

public class TestWrapper extends Wrapper {

	private TestWrapper() {};
	
	private static final Wrapper INSTANCE = new TestWrapper();

	public static Wrapper getInstance() {
		return INSTANCE;
	}
	
	public ArrayList<String> getAll() {
		ArrayList<String> list = new ArrayList<String>();
		list.add("reader01");
		list.add("button1143234");
		list.add("button435555");
		list.add("reader08");
		list.add("reader012");
		list.add("button455555131");
		return list;
	}

	public ArrayList<String> getButtons() {
		ArrayList<String> list = new ArrayList<String>();
		//list.add("reader01");
		list.add("button1143234");
		list.add("button435555");
		//list.add("reader08");
		//list.add("reader012");
		list.add("button455555131");
		return list;
	}

	public ArrayList<String> getButtonsFromPort(String portName) {
		ArrayList<String> list = new ArrayList<String>();
		if(portName.equals("USB1")) {
			list.add("button1143234");
			list.add("button435555");
		}
		//if(portName.equals("USB2"))
		if(portName.equals("USB3")) {
			list.add("button455555131");
		}
		return list;
	}

	public ArrayList<String> getReaders() {
		ArrayList<String> list = new ArrayList<String>();
		list.add("reader01");
		//list.add("button1143234");
		//list.add("button435555");
		list.add("reader08");
		list.add("reader012");
		//list.add("button455555131");
		return list;
	}

}
